//void, Obj owner, Obj victim

if (!owner.AsUnit.IsValid)
	return;
	
if (owner.IsValid()) {
	owner.AddItem("Spoils of War");
}